package com.ewo.service.impl.ApplicationPage;

import com.ewo.entity.ApplicationPage.CustomerEquipment;
import com.ewo.entity.ApplicationPage.CustomerSettlement;
import com.ewo.mapper.CustomerEquipmentMapper;
import com.ewo.mapper.CustomerSettlementMapper;
import com.ewo.service.ApplicationPage.CustomerEquipmentService;
import com.ewo.service.ApplicationPage.CustomerSettlementService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CustomerSettlementServiceImpl implements CustomerSettlementService {
    @Resource
    CustomerSettlementMapper customerSettlementMapper;
    //根据员工id查找关联已结算工单信息,根据客户id查找客户信息,产品信息
    public List<CustomerSettlement> findCustomerSettlementByEmpId(int empId){
        return customerSettlementMapper.findCustomerSettlementByEmpId(empId);
    }

    //根据员工id查找关联已结算工单信息,根据客户id查找客户信息,产品信息,配件信息
    public List<CustomerSettlement>  findAllCustomerSettlementByEmpId(int empId){
        return customerSettlementMapper.findAllCustomerSettlementByEmpId(empId);
    }

    //根据工单id查找当前结算工单信息
    public CustomerSettlement  findOneCustomerSettlementByWid(int empId,int wid){
        return customerSettlementMapper.findOneCustomerSettlementByWid(empId,wid);
    }


}
